<%@ Page Language="C#" MasterPageFile="~/master/admin.master" AutoEventWireup="true"
    CodeFile="add-subscriber.aspx.cs" Inherits="admin_add_subscriber" Title="Untitled Page" %>

<%@ Register Namespace="ECommerce.Library.Web" TagPrefix="ucc" %>
<%@ Register Src="~/controls/wucAdminValidator.ascx" TagName="AdminValidator" TagPrefix="wuc" %>
<asp:Content ID="cntMiddleContent" ContentPlaceHolderID="cphMiddleContent" runat="Server">
 <div class="admin-function-top">
    <ucc:ResponseMessage ID="uccResponseMessage" runat="server"></ucc:ResponseMessage>
    <asp:ValidationSummary ID="ValidationSummary1" runat="server" EnableClientScript="true"
        DisplayMode="BulletList" ShowMessageBox="true" HeaderText="Please correct the following:"
        CssClass="adminValidator" />
        
        <fieldset>
      
          <label> Name</label>
           <asp:TextBox ID="tbxSubscriberName" runat="server" Width="230px" CssClass="text"></asp:TextBox>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="tbxSubscriberName"
        ErrorMessage="Subscriber name is required" Display="dynamic" SetFocusOnError="true">
        <wuc:AdminValidator ID="AdminValidator1" runat="server" />
    </asp:RequiredFieldValidator>
    <br />
    <label>Email</label>
    <asp:TextBox ID="tbxSubscriberEmail" runat="server" Width="230px" CssClass="text"></asp:TextBox>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="tbxSubscriberEmail"
        ErrorMessage="Subscriber email is required" Display="dynamic" SetFocusOnError="true">
        <wuc:AdminValidator ID="AdminValidator2" runat="server" />
    </asp:RequiredFieldValidator>
    <asp:RegularExpressionValidator runat="server" ID="revPersonalEmailAddress" ControlToValidate="tbxSubscriberEmail"
        EnableClientScript="true" ErrorMessage="Incorrect Email Format" SetFocusOnError="true"
        ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">
        <wuc:AdminValidator ID="Validator29" runat="server" />
    </asp:RegularExpressionValidator>
    <br />
    <label>Subscriber group</label>
    <asp:DropDownList ID="ddlNewsletterGroup" runat="server" DataTextField="GroupName"
        DataValueField="GroupId">
    </asp:DropDownList>
    <br />
     <div class="btn-place-holder">
              <asp:Button ID="imgSaveBottom" runat="server" CssClass="button medium black" Text="Save"
        AlternateText=" "  OnClick="Create_Click" />
        </div>
        </fieldset>
        <br class="clear" />
    </div>
    <br class="clear" />
</asp:Content>
